import request from "@/utils/request.js";
import utils from "@/utils/utils.js"
export default {
	addGoods(params) {
		return request({
			url: 'system/goods',
			method: 'post',
			data: params
		})
	},
	editGoods(params) {
		return request({
			url: 'system/goods',
			method: 'put',
			data: params
		})
	},
	delGoods(params) {
		return request({
			url: 'system/goods/' + params.id,
			method: 'delete'
		})
	},
	list(params) {
		return request({
			url: 'system/goods/wechat/list',
			method: 'get',
			data: params
		})
	},
	detail(params) {
		return request({
			url: 'system/goods/' + params.id,
			method: 'get',
		})
	},
	getGoodTypeList(params) {
		return request({
			url: 'system/type/list',
			method: 'get',
			data: params
		})
	},
}
